var account_number="gl001";
var password="123456";
var btn1=document.getElementById("btn1");

 btn1.onclick=function(){
	 
	 var number=document.getElementById("number").value;
	 var txtpassword=document.getElementById("txtpassword").value;
	 if(account_number==number){
		 
		 if(password==txtpassword){
			 location.href='www.baidu.com';
		 }else{
			 alert("密码输入错误，重新输入！")
		 }
	 }else{
		 alert("账号输入错误，请重新输入！")
	 }
	 
 }